package Exer04_循环;
public class _1_4_2_求100个数相加 {
    public static void main(String[] args) {
        int sum = 0;
        for (int num = 1; num <= 100; num++) {
            sum += num;
        }
        System.out.println("1+2+3+...+100 = " + sum);
    }
}
